home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Technology Seed / ADC Seed CD - July 1999.toast / NSL 1.1 SDK Alpha2 / Headers / NSLPluginModule.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-10  |  2.0 KB  |  94 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        NSLPluginModule.h
  3.  
  4.      Contains:    Interface to API for using the NSL Manager
  5.  
  6.      Version:    Mac OS 8.5
  7.  
  8.      DRI:        Kevin Arnold
  9.  
  10.      Copyright:    © 1985-1999 by Apple Computer, Inc., all rights reserved
  11.  
  12.      Warning:    *** APPLE INTERNAL USE ONLY ***
  13.                  This file may contain unreleased API's
  14.  
  15.      BuildInfo:    Built by:            Steve Simon
  16.                  On:                    4/6/99 11:21 AM
  17.                  With Interfacer:    3.0d12   (MPW PowerPC)
  18.                  From:                NSLPluginModule.i
  19.                      Revision:        02
  20.                      Dated:            04/06/99
  21.                      Last change by:    sns
  22.                      Last comment:    switch to UPPs
  23.  
  24.      Bugs:        Report bugs to Radar component "System Interfaces", "Latest"
  25.                  List the version information (from above) in the Problem Description.
  26.  
  27. */
  28. #ifndef __NSLPLUGINMODULE__
  29. #define __NSLPLUGINMODULE__
  30.  
  31. #ifndef __NSL__
  32. #include <NSL.h>
  33. #endif
  34.  
  35.  
  36.  
  37. #if PRAGMA_ONCE
  38. #pragma once
  39. #endif
  40.  
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44.  
  45. #if PRAGMA_IMPORT
  46. #pragma import on
  47. #endif
  48.  
  49. #if PRAGMA_STRUCT_ALIGN
  50.     #pragma options align=mac68k
  51. #elif PRAGMA_STRUCT_PACKPUSH
  52.     #pragma pack(push, 2)
  53. #elif PRAGMA_STRUCT_PACK
  54.     #pragma pack(2)
  55. #endif
  56.  
  57.  
  58. #define    kNSLPluginNotKilled            -101
  59.  
  60. OSStatus InitPlugin( void );
  61. OSStatus KillPlugin( Boolean forceQuit );    
  62. OSStatus Register( NSLTypedDataPtr dataPtr );
  63. OSStatus Deregister( NSLTypedDataPtr dataPtr );
  64. OSStatus StartNeighborhoodLookup( NSLNeighborhood neighborhood, NSLMgrNotifyUPP notifier, NSLPluginAsyncInfoPtr pluginInfo );
  65. OSStatus StartServicesLookup( NSLNeighborhood neighborhood, NSLTypedDataPtr dataPtr, NSLMgrNotifyUPP notifier, NSLPluginAsyncInfoPtr pluginInfo );
  66. OSStatus ContinueLookup( NSLMgrNotifyUPP notifier, NSLPluginAsyncInfoPtr pluginInfo );
  67. OSStatus CancelLookup( NSLPluginAsyncInfoPtr pluginInfo );
  68. OSStatus ErrNumToString( OSStatus theErr, char* errorString, char* solutionString  );
  69.  
  70.  
  71.  
  72.  
  73.  
  74. #if PRAGMA_STRUCT_ALIGN
  75.     #pragma options align=reset
  76. #elif PRAGMA_STRUCT_PACKPUSH
  77.     #pragma pack(pop)
  78. #elif PRAGMA_STRUCT_PACK
  79.     #pragma pack()
  80. #endif
  81.  
  82. #ifdef PRAGMA_IMPORT_OFF
  83. #pragma import off
  84. #elif PRAGMA_IMPORT
  85. #pragma import reset
  86. #endif
  87.  
  88. #ifdef __cplusplus
  89. }
  90. #endif
  91.  
  92. #endif /* __NSLPLUGINMODULE__ */
  93.  
  94.